package example.book.server;

import example.book.mapper.UserInfoMapper;
import example.book.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServer {
    @Autowired
    private UserInfoMapper userInfoMapper;
    public UserInfo getUserByName(String name) {
        return userInfoMapper.selectUser(name);
    }
}
